import Layout from '@neu/biz-core/layout'

export default [
  {
    path: '/inventory',
    name: 'inventory',
    meta: {
      title: '资产盘点',
      icon: 'plan',
      module: 'dcam',
      code: 'menu_inventory'
    },
    component: Layout,
    redirect: 'noRedirect',
    alwaysShow: true,
    children: [
      {
        path: 'sl/plan',
        name: 'inventory_sl_plan',
        meta: {
          title: '盘点计划(总行)',
          icon: 'right-arrow',
          module: 'dcam',
          belongs: 'sl',
          code: 'menu_inventory_sl_plan'
        },
        component: () => import('@neu/dcam-ui/views/inventoryPlan')
      },
      {
        path: 'kj/plan',
        name: 'inventory_kj_plan',
        meta: {
          title: '盘点计划(科技)',
          icon: 'right-arrow',
          module: 'dcam',
          belongs: 'kj',
          code: 'menu_inventory_kj_plan'
        },
        // component: () => import('@neu/dcam-ui/views/inventoryPlanKJ')
        component: () => import('@neu/dcam-ui/views/inventoryPlan')
      },
      {
        path: 'sl/duty',
        name: 'inventory_sl_duty',
        meta: {
          title: '盘点任务(总行)',
          icon: 'right-arrow',
          module: 'dcam',
          belongs: 'sl',
          code: 'menu_inventory_sl_duty'
        },
        component: () => import('@neu/dcam-ui/views/inventoryDuty')
      },
      {
        path: 'kj/duty',
        name: 'inventory_kj_duty',
        meta: {
          title: '盘点任务(科技)',
          icon: 'right-arrow',
          module: 'dcam',
          belongs: 'kj',
          code: 'menu_inventory_kj_duty'
        },
        component: () => import('@neu/dcam-ui/views/inventoryDuty')
      },
      {
        path: 'result',
        name: 'dcam_inventoryExecuteResult',
        hidden: true,
        meta: {
          title: '盘点结果',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_inventory_result'
        },
        component: () => import('@neu/dcam-ui/views/inventoryExecuteResult')
      }
      // {
      //   path: 'sl/execute',
      //   name: 'inventory_sl_execute',
      //   meta: {
      //     title: '任务执行(总行)',
      //     icon: 'right-arrow',
      //     module: 'dcam',
      //     belongs: 'sl',
      //     code: 'menu_inventory_sl_execute'
      //   },
      //   component: () => import('@neu/dcam-ui/views/inventoryExecute')
      // },
      // {
      //   path: 'kj/execute',
      //   name: 'inventory_kj_execute',
      //   meta: {
      //     title: '任务执行(科技)',
      //     icon: 'right-arrow',
      //     module: 'dcam',
      //     belongs: 'kj',
      //     code: 'menu_inventory_kj_execute'
      //   },
      //   component: () => import('@neu/dcam-ui/views/inventoryExecute')
      // },
      // {
      //   path: 'sl/result',
      //   name: 'inventory_sl_result',
      //   meta: {
      //     title: '任务确认(总行)',
      //     icon: 'right-arrow',
      //     module: 'dcam',
      //     belongs: 'sl',
      //     code: 'menu_inventory_sl_result'
      //   },
      //   component: () => import('@neu/dcam-ui/views/inventoryResult')
      // },
      // {
      //   path: 'kj/result',
      //   name: 'inventory_kj_result',
      //   meta: {
      //     title: '任务确认(科技)',
      //     icon: 'right-arrow',
      //     module: 'dcam',
      //     belongs: 'kj',
      //     code: 'menu_inventory_kj_result'
      //   },
      //   component: () => import('@neu/dcam-ui/views/inventoryResult')
      // }
    ]
  }
]
